function [names vals latex] = struct2vec(ssVec,ssTex)
% Function to extract names, values, and latex from two structures into
% three arrays
% ======================================================================
% [Inputs]
% ssVec  : structure with fields corresponding to model names
% ssTex  : strcuture with fields of model names, and the corresponding
%          latex string
% ======================================================================
% [Outputs]    
% names  : cell of model names extracted from ssVec
% vals   : vector of model values extracted from ssVec
% latex  : cell of latex names extracted from ssTex
% =======================================================================
% [Notes]
% The purpose of this function is to allow easy transition between
% different layouts of parameter and steady state value representations
% ========================================================================


names = fieldnames(ssVec);
vals  = struct2array(ssVec);
latex = struct2cell(ssTex);


end